package com.enlf.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

/**
 * @author: rensiwei
 * @data: 2024-04-09
 */
public class EnlfConstants {

    /**
     * 1：店铺管理 2：优惠券添加 3：用户管理
     */
    public static final Integer FUNC_SHOP = 1;
    public static final Integer FUNC_VOUCHER = 2;
    public static final Integer FUNC_ADMIN = 3;

    /**
     * 权限枚举
     */
    public enum ADMIN_FUNC{
        //店铺操作权限
        FUNC_SHOP(1,"func_shop"),
        //优惠券操作权限
        FUNC_VOUCHER(2,"func_voucher"),
        //超级管理员权限
        FUNC_ADMIN(3,"func_admin");
        /**
         * 权限id
         */
        private Integer funcId;
        /**
         * 权限名称
         */
        private String funcName;

        ADMIN_FUNC(Integer funcId, String funcName) {
            this.funcId = funcId;
            this.funcName = funcName;
        }

        public Integer getFuncId() {
            return funcId;
        }

        public String getFuncName() {
            return funcName;
        }
    }

    public static final Integer ENLF_NUM_0 = 0;
    public static final Integer ENLF_NUM_1 = 1;
    public static final Integer ENLF_NUM_2 = 2;
    public static final Integer ENLF_NUM_3 = 3;
    public static final Integer ENLF_NUM_4 = 4;
    public static final Integer ENLF_NUM_5 = 5;
    public static final Integer ENLF_NUM_6 = 6;

    public static final String ENLF_NUM_STR_0 = "0";
    public static final String ENLF_NUM_STR_1 = "1";
    public static final String ENLF_NUM_STR_2 = "2";
    public static final String ENLF_NUM_STR_3 = "3";
    public static final String ENLF_NUM_STR_4 = "4";
    public static final String ENLF_NUM_STR_5 = "5";
    public static final String ENLF_NUM_STR_6 = "6";

    /**
     * 优惠券类型 0,普通券；1,秒杀券
     */
    public static final String ENLF_VOUCHER_TYPE_COMMON = "0";
    public static final String ENLF_VOUCHER_TYPE_SECKILL = "1";
    public static final Integer ENLF_VOUCHER_TYPE_INT_COMMON = 0;
    public static final Integer ENLF_VOUCHER_TYPE_INT_SECKILL = 1;
}
